package com.project.bean;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "news_index3")  //不能用驼峰命令
public class NewsEntity {
    @Id
    @Field(type = FieldType.Keyword)
    private String  newsId;
    @Field(type = FieldType.Keyword)
    private Integer newsMovieId;
    @Field(type = FieldType.Text)
    private String newsImg;
    @Field(type = FieldType.Text)
    private String newsName;
    @Field(type = FieldType.Text)
    private String newsInfo;
}



